package com.wclass.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.wclass.entity.BaseFeedback;
import com.wclass.mapper.BaseFeedbackMapper;
import com.wclass.service.IBaseFeedbackService;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * <p>
 * 意见反馈 服务实现类
 * </p>
 *
 * @author SEN
 * @since 2019-02-28
 */
@Service
public class BaseFeedbackServiceImpl extends ServiceImpl<BaseFeedbackMapper, BaseFeedback> implements IBaseFeedbackService {

    @Override
    public void insertInfo(Integer state, String content, String email, String phone, Integer type) {
        BaseFeedback info = new BaseFeedback();
        info.setCrtTime(new Date());
        info.setState(0);
        info.setState(state);
        info.setContent(content);
        info.setEmail(email);
        info.setPhone(phone);
        info.setType(type);
        baseMapper.insert(info);
    }
}
